package com.xmut.mall.order.controller;

import java.util.Arrays;
import java.util.Map;

import com.xmut.mall.order.annotation.CheckJwt;
import com.xmut.mall.order.utils.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.xmut.mall.order.entity.OrderLogEntity;
import com.xmut.mall.order.service.OrderLogService;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.utils.R;

@RestController
@RequestMapping("order/orderlog")
public class OrderLogController {
    @Autowired
    private OrderLogService orderLogService;

    /**
     * 增加订单的日志
     * @param orderLogEntity
     * @return
     */
    @CheckJwt
    @PostMapping("/addOrderLog")
    public RespBean addOrderLog(@RequestBody OrderLogEntity orderLogEntity){
        return orderLogService.addOrderLog(orderLogEntity);
    }
}
